package org.suk.dp.service;

import org.suk.dp.LotteryResult;

import java.util.Date;
/**
 * @description: 默认摇奖服务
 * @Date : 2020/12/30 10:47 AM
 * @Author : 石冬冬-Seig Heil
 */
public class DefaultLotteryService extends AbstractLotteryService {

    private MinibusTargetService minibusTargetService = new MinibusTargetService();

    @Override
    protected LotteryResult doDraw(String uId) {
        // 摇号
        String lottery = minibusTargetService.lottery(uId);
        // 结果
        return new LotteryResult(uId, lottery, new Date());
    }

}
